import request from '@/utils/request'

// 查询咨询统计列表
export function listReport(query) {
  return request({
    url: '/consult/report/list',
    method: 'get',
    params: query
  })
}

// 查询咨询统计详细
export function getReport(reportId) {
  return request({
    url: '/consult/report/' + reportId,
    method: 'get'
  })
}

// 新增咨询统计
export function addReport(data) {
  return request({
    url: '/consult/report',
    method: 'post',
    data: data
  })
}

// 修改咨询统计
export function updateReport(data) {
  return request({
    url: '/consult/report',
    method: 'put',
    data: data
  })
}

// 删除咨询统计
export function delReport(reportId) {
  return request({
    url: '/consult/report/' + reportId,
    method: 'delete'
  })
}


export function listPersonalReport(query) {
  return request({
    url: '/consult/report/personal/list',
    method: 'get',
    params: query
  })
}

export function listTeamReport(query) {
  return request({
    url: '/consult/report/team/list',
    method: 'get',
    params: query
  })
}

export function listGroupReport(query) {
  return request({
    url: '/consult/report/group/list',
    method: 'get',
    params: query
  })
}